package cn.roadtrip.utilmodule.util.enumpck;

/**
 * 大团状态
 */
public enum Enum_TravelListGroupStats {

    //-；-
    Normal("Normal", "正常");

    private String s;
    private String title;

    Enum_TravelListGroupStats(String s, String title) {
        this.s = s;
        this.title = title;
    }
    Enum_TravelListGroupStats(String s) {
        this.s = s;
        this.title = Enum_LoginPlat.parseCode(s).getTitle();
    }

    public String getTitle() {
        return this.title;
    }

    public String getCode() {
        return this.s;
    }

    public static final Enum_TravelListGroupStats parseCode(String code) {
        switch (code) {
            case "Normal":
                return Normal;
        }
        return null;
    }

    @Override
    public String toString() {
        return "(code:%s, title:%s)".formatted(this.s, this.title);
    }
}
